package com.teamclub.pay.confs;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value="classpath:pay.properties")
@ConfigurationProperties(prefix = "pay")
public class PayConf {
    private InnerPayConf weixin;

    public InnerPayConf getWeixin() {
        return weixin;
    }

    public void setWeixin(InnerPayConf weixin) {
        this.weixin = weixin;
    }

    public static class InnerPayConf {
        private String unifyorderUrl;

        public String getUnifyorderUrl() {
            return unifyorderUrl;
        }

        public void setUnifyorderUrl(String unifyorderUrl) {
            this.unifyorderUrl = unifyorderUrl;
        }
    }
}
